import Vue from 'vue/dist/vue.esm'
import Vuex from 'vuex'
Vue.use(Vuex)

import mutations from './vux/mutation'
import actions from './vux/actions'

export const store = new Vuex.Store({
  state: {
    token: '',
    loginStatus: false,
    userInfo: {}
  },
  mutations,
  actions,
  getters: {
    userInfo: state => {
      return state.userInfo
    }
  }
})
